package cn.bonoon.kernel.security;

import cn.bonoon.kernel.support.IOperator;

public abstract class AbstractOperatorProxyable implements IOperator{

	protected LogonUser source;

	@Override
	public boolean isWarning() {
		return source.isWarning();
	}

	@Override
	public String getDisplayName() {
		return source.getDisplayName();
	}
	
	public Long getId() {
		return source.getId();
	}

	public String getUsername() {
		return source.getUsername();
	}

	@Override
	public String getTitle() {
		return source.getTitle();
	}
	
	public Long getOwnerId() {
		return source.getOwnerId();
	}

	public long toOwnerId() {
		return source.toOwnerId();
	}

	public Long encryptId(Long id) {
		return source.encryptId(id);
	}

	public long encryptId(long id) {
		return source.encryptId(id);
	}

	public Long decryptId(Long id) {
		return source.decryptId(id);
	}

	public long decryptId(long id) {
		return source.decryptId(id);
	}

	public boolean isSuper() {
		return source.isSuper();
	}

	public boolean isAdmin() {
		return source.isAdmin();
	}

	public Object get(String name) {
		return source.get(name);
	}

	@Override
	public void checkEditable() throws EditableException {
		source.checkEditable();
	}
}
